# poor-mans-parallel
Bash, python, and a C++ program used to tackle a large scale research project about watersheds in Indonesia.  

These codes were used to set up a "parallel processing" enviroment in the Salisbury University GIS lab. 
Included are:
  A bash and python package: used to set up a multicore job using GRASS 7 and GNU parallel in a linux enviroment. This approach was 
  able to create over 500 watershed basins per hour on a hyperthreaded 4 core processor. Using 9 machines, this method produced watersheds for 
  over 250,000 pour point locations across Indonesia. Read the included readme for more information
  
  A post processing package: used to modify and prepare the results from the parallel processing package for analysis.
  Uses bash and python with GDAL/OGR for rapid modification of shapefiles. See included readme for more information
  
  Turbo-Pythagorean program: This simple C++ program reads in point data from a text file. This point data is loaded into
  a vector and sorted by ID. Due to the high number of distance calculations needed, this program can efficently
  search for two points in the vector and return the distance between them. Capable of calculating distance between 
  over 1.5 million pairings read from a file, and write the results in less than 20 seconds. 
  See inline comments for more info.
